@model User.Models.UserModels
@{
    ViewData["Title"] = "AddTypeName";
}
<div style="background-color:#E0EEEE; height: 70%; width: 50%; text-align: center;margin: 0 auto;overflow: auto;
    overflow-x: hidden;position: relative;">
    <h2 style="margin: 0px;padding: 50px;">添加清单类型</h2>
    <table>
    @foreach (var item in Model.Type)
    {
        <tr>
            <th>
                <a style="text-decoration:none;color:black;"href="/Inventory/ShowInventory?userId=@Model.UserId&typeId=@item.TypeId"><h5 style="font-size:23px;margin-left:170px;">@item.TypeName</h5></a>
            </th>
        </tr>
    }
   </table>
</div>
<h5 style="color:red;margin-left: 400px;">@ViewData["Message"]</h5>
<form action="/Type/AddTypeName?userId=@Model.UserId" method="post">
 <input style="margin-left: 400px;background-color:#E0EEEE;margin-top: 35px;width:30%;border-radius: 10px;border:0px;padding:10px;" type="text" name="typeName" placeholder="添加清单类型名,按Enter键完成" />
</form>
<a style="text-decoration:none;" href="/Type/Type?userId=@Model.UserId"><h4>返回</h4></a>